﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000A0 RID: 160
	internal class UInt32Int32 : IInt32Decoder
	{
		// Token: 0x06000291 RID: 657 RVA: 0x0000B6F1 File Offset: 0x00009AF1
		private UInt32Int32()
		{
		}

		// Token: 0x06000292 RID: 658 RVA: 0x0000B6F9 File Offset: 0x00009AF9
		public int Read(byte[] bytes, int offset, out int readSize)
		{
			readSize = 5;
			return checked((int)((uint)((uint)bytes[offset + 1] << 24) | (uint)((uint)bytes[offset + 2] << 16) | (uint)((uint)bytes[offset + 3] << 8) | (uint)bytes[offset + 4]));
		}

		// Token: 0x040000C2 RID: 194
		internal static readonly IInt32Decoder Instance = new UInt32Int32();
	}
}
